﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Backend.JYD.Model.Cust;
using Backend.JYD.Model;

namespace Backend.JYD.IDAL.Cust
{
    public interface ICustMarketingInfo
    {
        Int64 AddCustMarketingInfo(CustMarketingInfo info);

        bool UpdateCustMarketingInfo(CustMarketingInfo info);

        bool CompleteCustMarketingInfo(CustMarketingInfo info);

        CustMarketingInfo GetCustMarketingInfoByMarketingId(Int64 empId, Int64 marketingId);

        IList<CustMarketingInfo> GetCustMarketingInfoByEmpId(Int64 empId);

        PageInfo<CustMarketingInfo> GetCustMarketingInfoByPage(Int64? empId, DateTime? follow, int? status, PageInfo page);

        PageInfo<CustMarketingInfo> GetCustMarketingInfoByPage(Int64? empId, DateTime? start, DateTime? end, int? status, PageInfo page);

        IList<CustMarketingInfo> GetCustMarketingInfoByTaskDetailIds(List<Int64> taskDetailIds);

        CustMarketingInfo GetCustMarketingInfoByTaskDetailId(Int64? taskId, Int64 taskDetailId);

        PageInfo<CustBase> SearchCustBaseInfo(PageInfo page, string name, string phone);
    }
}
